// Copyright (c) MatrixFramework. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using PhotoGalleryService.Application.Contracts;
using PhotoGalleryService.Domain;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace PhotoGalleryService.Application;

/// <summary>
/// PhotoGallery服务Application模块
/// </summary>
[DependsOn(
    typeof(PhotoGalleryServiceDomainModule),
    typeof(PhotoGalleryServiceApplicationContractsModule),
    typeof(AbpDddApplicationModule),
    typeof(AbpAutoMapperModule)
)]
public class PhotoGalleryServiceApplicationModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        ConfigureAutoMapper(context);
    }

    private void ConfigureAutoMapper(ServiceConfigurationContext context)
    {
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<PhotoGalleryServiceApplicationModule>();
        });
    }
}